package com.yfqy.admin.service;

import com.github.pagehelper.PageInfo;
import com.yfqy.admin.domain.dto.attribute.AddAttribute;
import com.yfqy.admin.domain.dto.attribute.AttributeDTO;
import com.yfqy.admin.domain.dto.attribute.AttributeQuery;
import com.yfqy.admin.domain.dto.attribute.ModifiedAttribute;
import com.yfqy.admin.domain.entity.Attribute;

public interface AttributeService {


    int deleteByPrimaryKey(Long id);

    int insert(Attribute record);

    int insertSelective(Attribute record);

    AttributeDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attribute record);

    int updateByPrimaryKey(Attribute record);

    PageInfo<AttributeDTO> pageListByNameAndType(AttributeQuery attributeQuery);

    int addAttribute(AddAttribute addAttribute);

    int modifyAttribute(ModifiedAttribute modifyAttribute);
}
